﻿using System.ComponentModel;

namespace Api.Catalog.Models
{
    public class TokenPayload
    {
        public long userid { get; set; }

        public long? tenant { get; set; }

        public SysRole aud { get; set; }

        public string nickename { get; set; }
    }
    public enum SysRole
    {
        /// <summary>
        /// Saas后台用户
        /// </summary>
        [Description("后台管理员")]
        Manager = 0,

        /// <summary>
        /// 租户
        /// </summary>
        [Description("租户")]
        Tenant = 1,

        /// <summary>
        /// 客户端用户
        /// </summary>
        [Description("客户")]
        Customer = 2,
    }
}
